/* eslint-disable eol-last */
/* eslint-disable indent */
'use strict';


module.exports = app => {
    const { router, controller } = app;
    // 创建博客
    router.post('/api/blog/createBlog', app.middleware.blog(), controller.blog.createBlog);
    // 个人空间加载更多
    router.get('/api/blog/loadProfileMore/:userName/:pageIndex', app.middleware.loginChecks.loginCheck, controller.blog.loadProfileMore);
    // 广场加载更多
    router.get('/api/blog/loadSquareMore/:pageIndex', app.middleware.loginChecks.loginCheck, controller.blog.loadSquareMore);
    // 首页加载更多
    router.get('/api/blog/loadHomeBlogMare/:pageIndex', app.middleware.loginChecks.loginCheck, controller.blog.loadHomeBlogMore);
    //  atMe 加载更多
    router.get('/api/blog/loadAtMeBlogMare/:pageIndex', app.middleware.loginChecks.loginCheck, controller.blog.loadAtMeBlogMare);
};